﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DeliveryService
{
    public class BLCouriser
    {
        public List<MCourier> GetAllCouriser()
        {
            using (DeliveryDBDataContext db = new DeliveryDBDataContext())
            {
                return db.Couriers.Select(c => new MCourier { CouriserId = c.Courier_Id, CouriserName = c.Courier_Name }).ToList();
            }
        }
    }
}